const deps = {}
class Dep {
	constructor(key, data) {
		deps[key] = data
		this.key = key
	}
	notify() {
		deps[this.key] && deps[this.key].update()
	}
}
export default Dep